/*
 *  $Id: Poison.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Darkness.Spells {
    public class Poison: TargetEnchantmentCard<Creature> {
        public Poison(): base("001_d_s_poison") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Darkness;
            Value = 100;
            Target = CreatureTarget.Both;
            AddManaCost(ElementType.Darkness, 2);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new PoisonAffect(1);
        }
    }

    public class DeadlyPoison: TargetEnchantmentCard<Creature> {
        public DeadlyPoison(): base("001_d_s_deadly_poison") {
            Level = CompleteLevel.ReadyForTest;
            SetPictureSource<Poison>();
            Element = ElementType.Darkness;
            Value = 100;
            Target = CreatureTarget.Both;
            AddManaCost(ElementType.Darkness, 3);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new PoisonAffect(2);
        }
    }

    internal class PoisonAffect: EnchantmentAffect<Poison> {
        public PoisonAffect(int value) {
            Add(new Affects.Poison(value));
        }

        public override bool Drawable {
            get { return false; }
        }
    }
}
